<template>
  <div style="position: relative;width: 100%;height: 100%">
    <Ss11010Modal :familyId="ss11301Id" style="height: calc(100% - 70px)" processStage="01" :type="13"/>
    <div class="bottom">
      <Button @click="prevStep">上一步</Button>
      <Button type="primary" @click="nextStep" style="margin-left:20px">下一步
      </Button>
    </div>
  </div>
</template>

<script>
import {CommonMixin} from '@/views/common/js/CommonMixin'
import {postAction} from '@/api/request'
import Ss11010Modal from '../ss11_create_steps/modules/Ss11010Modal'

export default {
  name: "application3",
  mixins: [CommonMixin],
  components: {
    Ss11010Modal
  },
  data() {
    return {
      uploadFileData: {},
      url: {
        check: "/api/ac/subsistence/ss11310Service/check"
      },
      ss11301Id: this.$parent.familyInfo.ss11301Id,
      Loading: false,
      detailData: [],
      detailLoading: false
    }
  },
  methods: {
    prevStep() {
      this.$emit('prevStep');
    },
    nextStep() {
      let that = this;
      that.Loading = true;
      let url = this.url.check;
      postAction(url, {processPhase: "01", familyId: this.$parent.familyInfo.ss11301Id}).then((res) => {
        if (res.data.errcode != 0) {
          this.$Message.error(res.data.errmsg);
        } else {
          this.$emit('nextStep');
        }
      }).finally(() => {
        that.Loading = false;
      })
    },
  },
  created() {

  },
}
</script>

<style scoped>
/deep/ .ivu-upload {
  display: inline-block;
}

/deep/ th .vxe-cell {
  text-align: center;
}

col--tree-node.col-red {
  background-color: red;
  color: #fff;
}

.left {
  position: absolute;
  overflow-y: auto;
  width: 50%;
  top: 10px;
  left: 0px;
  height: calc(100% - 80px);
}

.right {
  position: absolute;
  overflow-y: auto;
  width: 50%;
  top: 10px;
  left: 50%;
  height: calc(100% - 80px);
}

.bottom {
  height: 40px;
  line-height: 40px;
  bottom: 10px;
  text-align: center;
  position: absolute;
  width: 100%;
}

/deep/ .ivu-upload-list {
  display: none;
}
</style>
